package com.tjzx.entity;

/**
 * EipUnitedGroupEmpId entity. @author MyEclipse Persistence Tools
 */

public class EipUnitedGroupEmpId implements java.io.Serializable {

	// Fields

	private EipUnitedGroup eipUnitedGroup;
	private EipUnitedEmployee eipUnitedEmployee;

	// Constructors

	/** default constructor */
	public EipUnitedGroupEmpId() {
	}

	/** full constructor */
	public EipUnitedGroupEmpId(EipUnitedGroup eipUnitedGroup,
			EipUnitedEmployee eipUnitedEmployee) {
		this.eipUnitedGroup = eipUnitedGroup;
		this.eipUnitedEmployee = eipUnitedEmployee;
	}

	// Property accessors

	public EipUnitedGroup getEipUnitedGroup() {
		return this.eipUnitedGroup;
	}

	public void setEipUnitedGroup(EipUnitedGroup eipUnitedGroup) {
		this.eipUnitedGroup = eipUnitedGroup;
	}

	public EipUnitedEmployee getEipUnitedEmployee() {
		return this.eipUnitedEmployee;
	}

	public void setEipUnitedEmployee(EipUnitedEmployee eipUnitedEmployee) {
		this.eipUnitedEmployee = eipUnitedEmployee;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof EipUnitedGroupEmpId))
			return false;
		EipUnitedGroupEmpId castOther = (EipUnitedGroupEmpId) other;

		return ((this.getEipUnitedGroup() == castOther.getEipUnitedGroup()) || (this
				.getEipUnitedGroup() != null
				&& castOther.getEipUnitedGroup() != null && this
				.getEipUnitedGroup().equals(castOther.getEipUnitedGroup())))
				&& ((this.getEipUnitedEmployee() == castOther
						.getEipUnitedEmployee()) || (this
						.getEipUnitedEmployee() != null
						&& castOther.getEipUnitedEmployee() != null && this
						.getEipUnitedEmployee().equals(
								castOther.getEipUnitedEmployee())));
	}

	public int hashCode() {
		int result = 17;

		result = 37
				* result
				+ (getEipUnitedGroup() == null ? 0 : this.getEipUnitedGroup()
						.hashCode());
		result = 37
				* result
				+ (getEipUnitedEmployee() == null ? 0 : this
						.getEipUnitedEmployee().hashCode());
		return result;
	}

}